import request from '@/utils/request';
import { API } from './enumAPI';

// 区域分组树结构
export const reqRegionTree = (params?: any) => request.get<any, any>(API.REGION_TREE_URL, { params });
// 用户列表
export const reqUserList = (data: any = { data: {} }) => request.post<any, any>(API.USER_LISTS_URL, data);
// 删除用户
export const reqDeleteUser = (data: any) => request.post<any, any>(API.USER_DELETE_URL, data);
// 新增用户
export const reqAddUser = (data: any) => request.post<any, any>(API.USER_ADD_URL, data);
// 编辑用户
export const reqEditUser = (data: any) => request.post<any, any>(API.USER_EDIT_URL, data);
// 批量更新用户状态（启用/停用）
export const reqChangeUserStatus = (data: any) => request.post<any, any>(API.USER_STATUS_CHANGE_URL, data);
// 重置密码
export const reqResetPassword = (data: any) => request.post<any, any>(API.USER_RESET_PWD_URL, data);
